package org.lboot.jpa.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.SuperBuilder;
import org.hibernate.annotations.GenericGenerator;

import jakarta.persistence.Column;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.Id;
import jakarta.persistence.MappedSuperclass;
import java.util.Date;

/**
 * @author kindear
 * 基础实体类
 */
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder(toBuilder = true)
@MappedSuperclass
@Schema(description = "无审计信息实体类")
public abstract class NoAuditBaseEntity {
    @Id
    @GenericGenerator(name = "id",strategy = "org.lboot.jpa.generator.SnowIdGenerator")
    @GeneratedValue(generator = "id")
    @Schema(description = "雪花ID",name = "id")
    protected String id;
}